#include<iostream>
using namespace std;

int main()
{
    class Base {
public:
    virtual Base* getPointer() {
        return this;
    }
};

class Derived : public Base {
public:
    virtual Derived* getPointer() override {
        return this;
    }
}; 
    reutrn 0;
}